package org.lanqiao.dxzf.service.account.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.dxzf.entity.Account;
import org.lanqiao.dxzf.entity.Customer;
import org.lanqiao.dxzf.mapper.account.AccountMapper;
import org.lanqiao.dxzf.service.account.AccountService;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {
	
	@Resource
	AccountMapper accountMapper;
	
	public List<Account> account_list() {
		// TODO Auto-generated method stub
		return accountMapper.account_list();
	}

	public Account select_account_list(Account account) {
		// TODO Auto-generated method stub
		return accountMapper.select_account_list(account);
	}

	public int update_account_list(Account account) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int upadte_Customer_list(Account account) {
		// TODO Auto-generated method stub
		return accountMapper.upadte_Customer_list(account);
	}

	public int insert_Customer(Account account) {
		// TODO Auto-generated method stub
		return accountMapper.insert_Customer(account);
	}

	public int insert_account(Account account) {
		// TODO Auto-generated method stub
		return accountMapper.insert_account(account);
	}

	public boolean insert_accounts(Account account) {
		// TODO Auto-generated method stub
		this.insert_account(account);
		this.insert_Customer(account);
		return true;
	}

}
